3D analysis of walking and balance